using System;
using System.Data;

namespace BRozklad.GAs
{
    [Serializable()]
    public class GA
    {
        private Population population;

        public GA(DataSet inrozklad)
        {
            population = new Population(inrozklad);
        }

        public void StartGenerate()
        {
            population.StartGenerate();
        }

        public void NextGenerate()
        {
            population.NextGenerate();
        }


        /*dodatkovi*/
        public int First()
        {
            return population.bestCost();
        }

        public void SaveResult()
        {
            population.SaveResult();
        }
    }
}
